const { query } = require('../config/db');

async function links() {
  const sql = 'select name,target,relation from post';
  return await query(sql);
}
async function nodes() {
  const sql = 'select name,portrait,intro,sid,pid from post';
  return await query(sql);
}

module.exports = {
  links, nodes
}